A5Storage::DataItem Get Method

Syntax

.Get as L (BYREF Data as B, BYREF ContentTypeResult as C)

.Get as L (BYREF Data as C, BYREF ContentTypeResult as C)

Arguments

BYREF DataBinary Character

The data in the item.

BYREF ContentTypeResultCharacter

The content type of the data.

Returns

ResultLogical

Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)

Description

Get the data for the object. The data returned may be a blob or a string, depending on the type of the Data argument you pass.

Discussion

You must dimension both the Data and ContentTypeResult variables before calling this function.

Example

dim CallResult as CallResult
dim Container as A5Storage::DataContainer = null_value()

CallResult = A5Storage::DataContainer::Open(Container, "Provider='Disk';Container='c:\A5Webroot';")
if CallResult.Success
    dim Item A5Storage::DataItem = null_value()
    if Container.ReferenceItem(Item, "MyObjectName")
        dim Data as B
        dim ContentTypeResult as C
        if .not. Item.Get(Data, ContentTypeResult)
            showvar(Item.CallResult.Text, "Error in Get")
        end if
    end if
end if